Remove overzealous validity check for secrets
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 24 Nov 2014 09:59:32 +0000 (10:59 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 26 Nov 2014 03:51:45 +0000 (22:51 -0500)
commitd9786d74db9238d480d65adcc030586b710b6043
tree7d7f466dbe5300ff83c360da85f1c5c2a1b6e860
parent246c172e1e9eb9e815c262a83fefed0ed4d89c05
Remove overzealous validity check for secrets

   We directly get the length of the secret from the g_variant
   and use it in a following g_strndup which ensures that the
   resulting string is terminated.

   This fixes reading secrets which were stored by system-config-printer.

https://bugzilla.gnome.org/show_bug.cgi?id=740612
modules/printbackends/cups/gtkcupssecretsutils.c